<?php
require 'vendor/autoload.php';


//  假设从db 中获取内容
$content = [
  'App\Demo\Person' => [
    'name' => 'liqiangzhuang',
    'age' => 18,
  ],
];

foreach ($content as $key => $value) {
  var_dump($key);
  print_r($value);
  $class = new ReflectionClass($key);
  $instance = $class->newInstanceArgs($value);
  var_dump($instance);
}
